﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>

<p>
<%if (AuthorizationManager.Authorize(Model, "Add"))
  { %>
            <%: Html.ActionLink("Create New", "Create",new {language = LocalizationContext.Language.ToString()})%>&nbsp;&nbsp;&nbsp;&nbsp;
    <%}
    if(AuthorizationManager.Authorize(Model, "Delete"))
  { %>
    <%= Html.ActionLink("Delete Selected", "Delete", new {language = LocalizationContext.Language.ToString()}, new { onclick = string.Format("if(confirm('{1}'))DeleteSelectedRecords('{0}'); return false;",Model,"Global.DeleteConfirmation") })%>
<%} %>
</p>